package com.hr.异步调用;

import lombok.extern.slf4j.Slf4j;

/**
 * @program: leetcode
 * @description:
 * @author: HuRan QQ1345122890
 * @create: 2021-08-11 16:26
 */
@Slf4j(topic = "demo02")
public class Demo02 {
    public static void main(String[] args) throws InterruptedException {
        Thread t1=new Thread("t1"){
            @Override
            public void run() {
                try {
                    Thread.sleep(2000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        };
        t1.start();
        log.debug("t1 state:{}",t1.getState());
        Thread.sleep(500);
        log.debug("t1 state:{}",t1.getState());

    }
}